package com.new_blog.service;

import com.new_blog.model.Articleinfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.new_blog.model.vo.ArticleInfoVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TQ02
 * @since 2024-03-21
 */
public interface ArticleinfoService extends IService<Articleinfo> {
    List<ArticleInfoVo> getAllPage(Integer pasize, Integer pindex);
    Integer getCount();
    Integer getCountId(String num);
    Integer getCountType(String num);
    Integer delete(int num);
    //查询指定序号的文章
    Articleinfo getId(Integer aid);

    List<ArticleInfoVo> getSearchPage(int pasize, int offest, String text);

    int getSearchCount(String text);
}
